import Axios from '../../Js/Ajax'
const Index = {
  LoginByAccount (params, data) {
    console.log('LoginByAccount params:', params, data)
    return Axios.post(`/login`, params.data, { headers: params.headers })
  },
  // 个人设置
  UserSetting (params) {
    console.log('UserSetting parms', params)
    return Axios.post('/auth/user-setting', params)
  },
  // 上传文件
  UploadFile (params) {
    console.log('UploadFile params:', params)
    return Axios.post('/auth/upload', params.data, { headers: params.headers })
  },
  // 申诉
  UserAppeal (params) {
    console.log('UserAppeal params:', params)
    return Axios.post('/auth/appeal', params)
  }
}
export default Index
